<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=request.getContextPath()%>/">
<link rel="stylesheet" type="text/css" href="static/css/systemhdp.css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src="static/js/jquery-1.12.4.js"></script>
</head>
<script>
	$(function(){
		$(".button2").on('click',function(){
			var s=[];			
			$("input:checked").each(function(){
			var aa=$(this).attr("ss");
			s.push(aa);			
		})	
		$(".tupianid").val(s);
	})
		$(".anniu3").on('click',function(){
			var t=$(this).attr("ss");
			$(".sa").attr("href","tianjia?value="+t+"");
		});
		//表格颜色变换
		$("tr").hover(function(){
			$(this).css("background","#f1f1f1");
		});
		$("tr").mouseleave(function(){
			$(this).css("background","white");
		});
	})
</script>
<style>
th {
	background: #f1f1f1;
	line-height: 2em;
	padding:8px;
	font-size:12px;
	font-family: "Microsoft YaHei";
	  border: 1px solid #e2e2e2;
}
td {
	text-align: center;
	padding:8px;
	font-size:12px;
	font-family: "Microsoft YaHei";
	 border: 1px solid #e2e2e2;
}
</style>
<body>
<form method="post">
	<div class="systemhdp">
		<span>系统幻灯片</span>
		<div class="hdpanniu">
		<a href="tianjia"><input class="button1" type="button" value="+添加" /></a> 
		<a href=""><input class="button2" type="submit" value="-删除" />	</a>
		<input class="tupianid" name="tupianid">
		</div>
		<div class="hdpnr">
			<table>
				<tr>
					<th></th>
					<th width="300px">预览</th>
					<th width="340px">标题</th>
					<th width="330px">url</th>
					<th width="300px">操作</th>
				</tr>
				<c:forEach var="web" items="${weburl}">
					<tr>
						<td><input style="border: none" type="checkbox" ss="${web.weburltypeid }"/></td>
						<td><img src="static/img/${web.weburlimg}" height="50px" width="50px"/></td>
						<td>${web.weburlname }</td>
						<td>${web.weburldns}</td>
						<td><a class="sa" >
						<input class="anniu3" type="button" value="修改" ss="${web}"/></a>
						</td>
					</tr>
				</c:forEach>
			</table>
		</div>
	</div>
	</form>
</body>
</html>